#pragma once
#include <math.h>


class Vertex 
{
  public:
    double x;
    double y;
    bool closed;
    double cost;
    Vertex* parent;
	int paren;

    Vertex(): x( 0 ), y( 0 ), closed( false ), cost( 0 ), parent( NULL ) {}

    double getDistanse( Vertex* v ) {// Distance between 2 Vertexes
        return sqrt( pow( x - v->x, 2 ) + pow( y - v->y, 2 ) );
    }
};
